package main

import "fmt"

func main() {
	var str, str_conv string
	fmt.Scan(&str)
	for _, i := range str {
		str_conv = string(i) + str_conv
	}
	fmt.Println(str_conv)
}
